package com.longqin.business.mapper;

import com.longqin.business.entity.BusProjectProblem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 项目问题表 Mapper 接口
 * </p>
 *
 * @author longqin
 * @since 2025-04-08
 */
@Mapper
public interface BusProjectProblemMapper extends BaseMapper<BusProjectProblem> {

    int updateStatus(@Param("status") Integer status, @Param("id") Integer id);
	
	List<BusProjectProblem> selectPage(@Param("projectId") Integer projectId, @Param("title") String title, 
			@Param("beginTime") String beginTime, @Param("endTime") String endTime, @Param("startIndex") Integer startIndex, @Param("size") Integer size);
	
	int selectCount(@Param("projectId") Integer projectId, @Param("title") String title, 
			@Param("beginTime") String beginTime, @Param("endTime") String endTime);
	
	BusProjectProblem selectByWorkId(@Param("workId") Integer workId);
}
